package com.seek.springevent.activemq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Service;

@Service
public class MessageConsumer {


    @Autowired(required = false)
    private JmsMessagingTemplate jmsMessagingTemplate;

    @JmsListener(destination = "test.queue")
    public void consumerMessage(String message){

//        SessionAwareMessageListener
//        MessageListener
        String test = message;
        System.out.println(message);
    }
}
